#ifndef TASKPRIVATE_H
#define TASKPRIVATE_H

#include <QThread>
#include <defs/export.h>
namespace Opl
{
	namespace Core
	{
		class Task;
		class CORE_EXPORT TaskPrivate : public QThread
		{
				Q_OBJECT
			public:
				TaskPrivate(Task* t);
				void run();

				Task* target;
				bool shouldStop;

				static void sleep(unsigned long seconds);
				static void msleep(unsigned long milliseconds);
				friend class Task;
		};

	};
}


#endif // TASKPRIVATE_H
